package com.bigegg.employee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bigegg.employee.mapper.BoardReviewMapper;
import com.bigegg.employee.domain.BoardReview;
import com.bigegg.employee.service.IBoardReviewService;

/**
 * 公告预览Service业务层处理
 * 
 * @author sun
 * @date 2022-08-15
 */
@Service
public class BoardReviewServiceImpl implements IBoardReviewService 
{
    @Autowired
    private BoardReviewMapper boardReviewMapper;

    /**
     * 查询公告预览
     * 
     * @param id 公告预览主键
     * @return 公告预览
     */
    @Override
    public BoardReview selectBoardReviewById(Long id)
    {
        return boardReviewMapper.selectBoardReviewById(id);
    }

    /**
     * 查询公告预览列表
     * 
     * @param boardReview 公告预览
     * @return 公告预览
     */
    @Override
    public List<BoardReview> selectBoardReviewList(BoardReview boardReview)
    {
        return boardReviewMapper.selectBoardReviewList(boardReview);
    }

    /**
     * 新增公告预览
     * 
     * @param boardReview 公告预览
     * @return 结果
     */
    @Override
    public int insertBoardReview(BoardReview boardReview)
    {
        return boardReviewMapper.insertBoardReview(boardReview);
    }

    /**
     * 修改公告预览
     * 
     * @param boardReview 公告预览
     * @return 结果
     */
    @Override
    public int updateBoardReview(BoardReview boardReview)
    {
        return boardReviewMapper.updateBoardReview(boardReview);
    }

    /**
     * 批量删除公告预览
     * 
     * @param ids 需要删除的公告预览主键
     * @return 结果
     */
    @Override
    public int deleteBoardReviewByIds(Long[] ids)
    {
        return boardReviewMapper.deleteBoardReviewByIds(ids);
    }

    /**
     * 删除公告预览信息
     * 
     * @param id 公告预览主键
     * @return 结果
     */
    @Override
    public int deleteBoardReviewById(Long id)
    {
        return boardReviewMapper.deleteBoardReviewById(id);
    }
}
